import React from 'react';
import { Switch, Route } from 'react-router-dom';
import TaskInfo from './TaskInfo';
import TaskDetail from './TaskDetail';
import VulDetail from './TaskDetail/HostDetail/VulDetail';
import CreateJob from '../CreateJob';
export default function Weakness() {
	return (
		<Switch>
			<Route
				exact
				path="/task/:assetType/info"
				component={TaskInfo}
				key={Date.now()}
			/>

			<Route exact path="/task/:assetType/info/:jid" component={TaskDetail} />
			{/* <Route exact path="/task/VulDetail" component={VulDetail} /> */}
			<Route exact path="/task/createJob" component={CreateJob} />
		</Switch>
	);
}
